package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.Exam01.Bai1;

/**
 * Created by Sang on 07/03/2016.
 */
public class HinhthoiController {
    private HinhthoiEntity hinhthoiEntity = new HinhthoiEntity();

    public HinhthoiController(HinhthoiEntity hinhthoiEntity) {
        this.hinhthoiEntity = new HinhthoiEntity();
    }

    public double ThoiArea(HinhthoiEntity hinhthoiEntity){
        return  hinhthoiEntity.getArea(hinhthoiEntity);

    }
    public double ThoiPerimeter(HinhthoiEntity hinhthoiEntity){
        return  hinhthoiEntity.getPerimeter(hinhthoiEntity);
    }
}
